2.8 EASY VPN (IOS-IOS)


In configuration no need of any changes for connecting HARDWARE device as client or SOFTWARE installed pc as a client

Cisco proprietary VPN

Ipsec RA method

Any vpn client can be used

  

Cisco Easy VPN is an IP Security (IPsec) virtual private network (VPN) solution supported by Cisco routers and  
security appliances. It greatly simplifies VPN deployment for remote offices and mobile workers. Cisco Easy

VPN is based on the Cisco Unity Client Framework, which centralizes VPN management across all Cisco VPN

devices, thus reducing the management complexity of VPN deployments. There are three components of the

Cisco Easy VPN solution: Easy VPN Client, Easy VPN Remote, and Easy VPN Server.

  The Cisco Easy VPN Client enables mobile workers to create a remote-access VPN connection to a Cisco Easy

VPN Server. Cisco Easy VPN Client refers to the Cisco VPN Client, which is also commonly referred to as the

Cisco Software VPN Client.

  The Cisco Easy VPN Remote enables Cisco routers and security appliances to establish a site-to-site VPN

connection to a Cisco Easy VPN Server without complex remote-side configuration. Cisco Easy VPN Remote is

also commonly referred to as a hardware client.

  The Cisco Easy VPN Server accepts connections from Cisco Easy VPN Client and Remote, ensures that those

connections have up-to-date policies in place before the connections are established.

   The Cisco Easy VPN solution uses the Mode-Configuration (Mode-Config) mechanism within the Internet Key

Exchange (IKE) to push policy (attributes) from the Easy VPN Server to the Easy VPN Client or Remote. Since

this policy is pushed to the client or the remote every time a new tunnel is created, it makes it easier to

propagate new policy changes. Mode-Config also enables the Client or the Remote to have minimal

configuration in order to establish the tunnel.

  The attributes that can be pushed down through Mode-Config include: internal IP address, internal subnet mask,

Domain Name Server (DNS) addresses, Windows Internet Name Service (WINS) addresses, backup server list,

domain name, client firewall policy, Cisco IOS Software configuration and Split Tunneling


eazy.pptx

NVI

The NAT Virtual Interface feature allows all NAT traffic flows on the virtual interface, eliminating the  need to specify inside and outside domains. When a domain is specified, the translation rules are applied  either before or after route decisions depending on the traffic flow from inside to outside or outside to  inside. The translation rules are applied only after the route decision for an NVI.  When a NAT pool is shared for translating packets from multiple networks connected to a NAT router,  an NVI is created and a static route is configured that forwards all packets addressed to the NAT pool to  the NVI. The standard interfaces connected to various networks will be configured to identify that the  traffic originating and receiving on the interfaces needs to be translated.

Limitations
CLASS TASK
SERVER CONFIGURATION

Step 1: Define AAA based service

             In this configuration the command ‘aaa authorization network AUTH1 local’ tells us that the configuration for Easy VPN group (policies) must be downloaded from local database.

Step 2: Create Username/Password [ACS/Local]
Step 3: Define ISAKMP Policy
Step 4: Define transform set for data protection
  • (config)# crypto ipsec transform-set  TSET  esp-3des esp-sha-mac
Step 5: Define ACL for split tunneling
  • ! If Split Tunneling is required, define the ACL's here
  • ! SPLIT TUNNELING DEFINITION: This is a process where we can tell the device what traffic needs to be encrypted.  If split tunnel is not enabled, every traffic (even traffic on the public network)
  • !                                                  will be routed via the server! So in a practical scenario, if there is a VPN tunnel established between a remote client and a server, even traffic destined for the Internet
  • !                                                  will get routed through the server.
Step 6: Define pool of IP Address for client
Step 7: Define a ISAKMP Client Config and Reference the POOL
Step 8: Define Dynamic crypto map
Step 9: Refer the dynamic crypto map onto a static crypto map
              
Step 10: Apply the static crypto map to the interface
CLIENT CONFIGURATION
Step 1: Define ISAKMP Policy
Step 2: Config IPSec Client
                 ! Any one of the mode below
                           Mode: Client
                           Mode: Network Extension
                           Mode: Network Extension Plus
       ! Any one of the above
Step 3: Apply to the Interfaces
Step 4: Connect
                 If connection is MANUAL:
                           # crypto ipsec client ezvpn connect
Miscellaneous Command/Configurations  
SAVE USERNAME/PASSWORD:  If you want to save username and password and want the VPN to come on without typing the username and password,
At the Server STEP 7:  
At the Client STEP 2:

Class Task 2

Solutions:  
  • Please ensure IP Addresses are configured as shown in the topology
  • Please ensure that there is connectivity between all the devices
Configuration on the Server:
Step 1: AAA Configuration
Step 2: Username and Password
Step 3: ISAKMP Policy
  • server(config)# crypto isakmp policy 10
    • server(config-isakmp)# authentication pre-share
    • server(config-isakmp)#  encr 3des
    • server(config-isakmp)#  hash sha
    • server(config-isakmp)#  group 2
Step 4: IPSec Transform Set
  • server(config)# crypto ipsec transform-set TSET esp-3des esp-sha-hmac
Step 4: Access Lists
  • server(config)# access-list 101 permit ip host 1.1.1.1 any // To control Traffic from HR Group
  • server(config)# access-list 102 permit ip host 1.1.1.1 any // To control Traffic from Admin Group
  • server(config)# access-list 102 permit ip host 11.11.11.11 any  // To control Traffic from Admin Group
Step 5: IP POOL
  • server(config)# ip local pool POOL 20.1.1.2 20.1.1.100
Step 6: ISAKMP Client Configuration
  • server(config)# crypto isakmp client configuration group HR
    • server(config-isakmp-group)# key HR
    • server(config-isakmp-group)# pool POOL
    • server(config-isakmp-group)# acl 101 // Used for SPLIT TUNNELING, encrypt some traffic and do not encrypt the others
  • server(config)# crypto isakmp client configuration group Admin
    • server(config-isakmp-group)# key Admin
    • server(config-isakmp-group)# pool POOL
    • server(config-isakmp-group)# save-password // For Auto Connect without entering password
    • server(config-isakmp-group)# acl 102  // Used for SPLIT TUNNELING, encrypt some traffic and do not encrypt the others
Step 7: Dynamic Crypto Map
Step 8: Static Crypto MAP
  • server(config)# crypto map CMAP 10 ipsec-isakmp dynamic DMAP
  • server(config)# crypto map CMAP client authentication list AUTHC
  • server(config)# crypto map CMAP isakmp authorization list AUTHZ
  • server(config)# crypto map CMAP  client configuration address respond
Step 9: Apply the Static Crypto Map on the interface
  • server(config)# interface f0/0
    • server(config-if)# crypto map CMAP
Client1 Configurations
Step 1: Define ISAKMP Policy
  • client1 (config)# crypto isakmp policy 10
    • client1  (config-isakmp-policy)# authentication pre-share
    • client1  (config-isakmp-policy)# encryption 3des
    • client1  (config-isakmp-policy)# hash sha
    • client1  (config-isakmp-policy)# group 2
Step 2: Config IPSec Client
  • client1  (config)# crypto ipsec client ezvpn EZ_HR
    • client1  (config-ezvpn)# group HR key HR
    • client1  (config-ezvpn)# peer 10.1.1.1 //  Server's IP Address
    • client1  (config-ezvpn)# connect manual
    • client1  (config-ezvpn)# mode client
Step 3: Apply to the Interfaces
  • client1  (config)# int loopback 0
    • client1  (config-if)# crypto ipsec client ezvpn EZ_HR inside
  • client1  (config)# int loopback 1
    • client1  (config-if)# crypto ipsec client ezvpn EZ_HR inside
  • client1  (config)# int f0/0
    • client1  (config-if)# crypto ipsec client ezvpn EZ_HR outside
Step 4: Connect
  • client1# crypto ipsec client ezvpn connect //  Because connection is MANUAL
  • client1# crypto ipsec client ezvpn xauth
Client2 Configurations
Step 1: Define ISAKMP Policy
  • client1 (config)# crypto isakmp policy 10
    • client1  (config-isakmp-policy)# authentication pre-share
    • client1  (config-isakmp-policy)# encryption 3des
    • client1  (config-isakmp-policy)# hash sha
    • client1  (config-isakmp-policy)# group 2
Step 2: Config IPSec Client
  • client1  (config)# crypto ipsec client ezvpn EZ_Admin
    • client1  (config-ezvpn)# group Admin key Admin
    • client1  (config-ezvpn)# peer 10.1.1.1  //  Server's IP Address
    • client1  (config-ezvpn)# connect auto
    • client1  (config-ezvpn)# mode network-extension
    • client1 (config-ezvpn)# username CCIE password CCIE // For Auto Connect without password
    • client1 (config-ezvpn)# xauth userid mode local
Step 3: Apply to the Interfaces
  • client1  (config)# int loopback 0
    • client1  (config-if)# crypto ipsec client ezvpn EZ_Admin inside
  • client1  (config)# int loopback 1
    • client1  (config-if)# crypto ipsec client ezvpn EZ_Admin inside
  • client1  (config)# int f0/0
    • client1  (config-if)# crypto ipsec client ezvpn EZ_Admin outside
Step 4: Connect
  • ! In this case, we do not need to use any commands to connect as the username and password is available locally as configured in step 2.
Client3 Configurations
Step 1: Define ISAKMP Policy
  • client1 (config)# crypto isakmp policy 10
    • client1  (config-isakmp-policy)# authentication pre-share
    • client1  (config-isakmp-policy)# encryption 3des
    • client1  (config-isakmp-policy)# hash sha
    • client1  (config-isakmp-policy)# group 2
Step 2: Config IPSec Client
  • client1  (config)# crypto ipsec client ezvpn EZ_HR
    • client1  (config-ezvpn)# group HR key HR
    • client1  (config-ezvpn)# peer 10.1.1.1  //  Server's IP Address
    • client1  (config-ezvpn)# connect auto
    • client1  (config-ezvpn)# mode network-plus
Step 3: Apply to the Interfaces
  • client1  (config)# int loopback 0
    • client1  (config-if)# crypto ipsec client ezvpn EZ_HR inside
  • client1  (config)# int loopback 1
    • client1  (config-if)# crypto ipsec client ezvpn EZ_HR inside
  • client1  (config)# int f0/0
    • client1  (config-if)# crypto ipsec client ezvpn EZ_HR outside
Step 4: Connect
  • client1# crypto ipsec client ezvpn xauth // Connection is auto, but we need to type this command to provide the login details!
Software Client Configurations
For this task, we will make use of a virtual machine running windows xp on VMWare. The virtual machine's NIC is the interface connected to the cloud from GNS3. You could also make use of loopback adapters on Windows 7 and below and connect the cloud to loopback interface. Since I am using Windows 8, the loopback interface does not seem to be working well. Hence I am using VMWare!